extends StateBase

var player: Player


func on_enter(owner = null, params = null):
	player = owner as Player
	
	player.disable_body_collision()
	player.level.emit_particle("particle_death_effect", player.get_random_hurt_position())
	AudioManager.play_sound("sfx_fail")
	player.pause_animation()
	player.death_fade()
	player.level.on_player_death()
	

func on_exit(owner = null):
	pass


func on_process(delta: float, owner = null):
	pass
	
	
func on_physics_process(delta: float, owner = null):
	pass
